export interface IRound {
  id: string;
  prize:
    | "LUCKY_A"
    | "LUCKY_B"
    | "LUCKY_C"
    | "LUCKY_D"
    | "LUCKY_E"
    | "THIRD_A"
    | "THIRD_B"
    | "THIRD_C"
    | "THIRD_D"
    | "SECOND_A"
    | "SECOND_B"
    | "SECOND_C"
    | "FIRST_A"
    | "FIRST_B"
    | "FIRST_C"; // 抽奖类型
  count: 30; // 抽奖个数
  winners: string[];
  state: boolean; // 客户端是否接收到了这个数据
}

export const displayPrize = (prize: IRound["prize"]) => {
  return {
    LUCKY_A: "幸运奖A",
    LUCKY_B: "幸运奖B",
    LUCKY_C: "幸运奖C",
    LUCKY_D: "幸运奖D",
    LUCKY_E: "幸运奖E",
    THIRD_A: "三等奖 京东购物卡",
    THIRD_B: "三等奖 徕芬Laifen高速吹风机",
    THIRD_C: "三等奖 小米（MI） 米家喷墨打印一体机",
    THIRD_D: "三等奖 倍轻松 (breo） seex2pro 曜石黑-眼睛按摩仪",

    SECOND_A: "二等奖 MARSHALL （马歇尔） WILLEN I1 蓝牙音响",
    SECOND_B: "二等奖 大疆 DJI Neo 掌上 Vlog 跟拍无人机",
    SECOND_C: "二等奖 华为FreeClip 耳夹耳机",

    FIRST_A: "一等奖 大疆 DJI Osmo Action 4 运动相机",
    FIRST_B: "一等奖 大疆DJI Mini 4K 超高清迷你航拍无人机",
    FIRST_C: "一等奖 九号电动滑板车F25升级款",
  }[prize];
};
